#ifndef GUIELEMENT_H
#define GUIELEMENT_H
#include "sdl.h"  
#include <string>
class GuiElement
{
private:
	void registerElement();
protected:
	GuiElement() ;
	~GuiElement(void) ;
	SDL_Rect* inner;
	SDL_Rect* outer; 
	   
public:
	std::string prop; //property that the element represents
	std::string value;
	bool isActive;
	virtual void onClick() =0;
	virtual void onClickOut() =0;
	virtual void drawElement(SDL_Surface* screen)  =0;
	virtual void handleInput(SDL_Event event) = 0;
	bool isInBounds(int x , int y)  ;
};

#endif
